package clazz.packaging;
//封装
public class Packaging {
    //因为生产商品或者类似东西都要选择性暴露所以要封装也就是选择暴露
private int a;
 private String car;
//这样只能通过get得到值或者set输入看不到里面的值
    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }
}
